<?php
namespace app\admin\model;

use think\Model;

class Banner extends Model
{
    public function getList( $order, $page, $pageSize){
        $data = $this->page($page,$pageSize)->order("$order[0] $order[1]")->select();
        return $data;
    }

    public function listCount(){
        $count = $this->count();
        return $count;
    }
}